package org.javaongems.client.stdctrls;

import org.javaongems.client.vcl.WinControl;

import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.Element;

public class Button extends WinControl {
	public Button() {
		boundsRect.width = 75;
		boundsRect.height = 25;
	}
	
	protected Element createElement() {
		Element elm = DOM.createButton();
		return elm;
	}
	
	protected void paintAttributeText() {
		// ignore text
	}
	
	protected boolean isDefaultWidthHeight() {
		return boundsRect.width == 75 && boundsRect.height == 25;	
	}
}
